import request from '@/utils/request'

// 新增轮播
export function addCarousel(data) {
	return request({
		url: '/admin/carousel/add',
		method: 'post',
		data: data
	})
}
// 修改轮播
export function editCarousel(data) {
	return request({
		url: '/admin/carousel/update',
		method: 'post',
		data: data
	})
}

// 删除轮播
export function deleteCarousel(data) {
	return request({
		url: '/admin/carousel/del',
		method: 'post',
		data: data
	})
}

// 查询轮播列表
export function getCarouselList(data) {
	return request({
		url: '/admin/carousel/list',
		method: 'post',
		data: data
	})
}

// 查询轮播详情
export function getCarouselDetail(data) {
	return request({
		url: '/admin/carousel/' + data,
		method: 'get'
	})
}
